import { axios } from '@/utils/request'
import qs from 'qs'
export function getList(params) {
    return axios({
        url: '/Customerrefund/list',
        method: 'get',
        params: params
    })
}
export function ToVoid(params) {
    return axios({
        url: '/Customerrefund/enditChargeState',
        method: 'get',
        params: params
    })
}
export function getDetail(params) {
    return axios({
        url: '/Customerrefund/customerDetailQuery',
        method: "get",
        params: params
    })
}
export function getWorkers(params) {
    return axios({
        url: '/Customerrefund/information',
        method: 'get',
        params: params
    })
}
export function getUserDetail(params) {
    return axios({
        url: '/Customerrefund/getUserProject',
        method: 'get',
        params: params
    })
}
export function addRefund(data) {
    return axios({
        url: '/Customerrefund/refundSubmit',
        data: data,
        method: 'post'
    })
}
export function edit(params) {
    return axios({
        url: '/Customerrefund/getModifyQueryRefund',
        method: 'get',
        params: params
    })
}
export function editSubmit(data) {
    return axios({
        url: '/Customerrefund/enditTgsRefund',
        method: 'post',
        data: data
    })
}
export function getPro(params) {
    return axios({
        url: '/Customerrefund/getUserProjectList',
        method: 'get',
        params: params
    })
}

export function refund(params) {
    return axios({
        url: '/Customerrefund/ConfirmRefund',
        method: 'get',
        params: params
    })
}
export function submitRefund(data) {
    return axios({
        url: '/Customerrefund/doRefund',
        method: 'post',
        data: data
    })
}

export function getYc(data) {
    return axios({
        url: '/Customerrefund/getCustomerBill',
        method: 'post',
        data: data
    })
}

export function getYj(params) {
    return axios({
        url: '/Customerrefund/getUserYjAmt',
        method: 'get',
        params: params
    })
}
export function addYJ(data) {
    return axios({
        url: '/Customerrefund/ConfirmRefundYjAmt',
        method: 'post',
        data: data
    })
}